package com.ryzx.auth.vo;

import com.ryzx.jpa.helper.base.BapBaseEntity;
import com.ryzx.jpa.helper.comment.Comment;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Entity
@Comment("菜单表")
@Table(name = "bap_menu")
public class BapMenu extends BapBaseEntity {
    @Comment("标题")
    @Column(nullable = false, length = 30)
    private String title;
    @Comment("编码")
    @Column(nullable = false, length = 30)
    private String code;
    @Comment("名称")
    @Column(nullable = false, length = 30)
    private String name;
    @Comment("路径")
    @Column(nullable = false, length = 30)
    private String path;
    @Comment("组件")
    @Column(nullable = false, length = 30)
    private String component;
    @Comment("父ID")
    @Column(nullable = false, length = 30)
    private String pid;
    @Comment("图标")
    @Column(nullable = false, length = 30)
    private String icon;
    @Comment("隐藏")
    @Column(nullable = false)
    private Boolean hidden=false;
}